package com.cloud.ck.service;

import com.cloud.ck.entity.SysLog;
import com.cloud.mapper.ClickLogMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @create 2022/8/5 9:35
 */
@Service
@Slf4j
public class ChickHouserService {

    @Resource
    private ClickLogMapper clickLogMapper;


    public void insertLog(SysLog sysLog) {
        clickLogMapper.insertLog(sysLog);
    }

    public void creatTable(String sysLog) {
        clickLogMapper.createLog(sysLog);
    }

    public List<SysLog> query() {
        return clickLogMapper.query();
    }

    public void batchInsert(List<SysLog> listRecord) {
        clickLogMapper.batchInsert(listRecord);
    }
}